/**
 *
 */
package de.cbf.cam.dsa.entity.edit.item.persistence;

import de.cbf.cam.dsa.facet.armor.persistence.PortFacetArmorXML;
import de.cbf.cam.dsa.facet.container.persistence.PortFacetContainerXML;
import de.cbf.cam.dsa.facet.garment.persistence.PortFacetGarmentXML;
import de.cbf.cam.dsa.facet.item.persistence.PortFacetItemXML;
import de.cbf.cam.dsa.facet.weapon_cc.persistence.PortFacetWeaponCCXML;
import de.cbf.cam.dsa.facet.weapon_ranged.persistence.PortFacetWeaponRangedXML;
import de.cbf.util.entity.facet.persistence.xml.ManagerPortEntityFacetedXML;
import de.cbf.util.entity.facet.persistence.xml.controller.AbstractControllerPortXMLFacet;
import de.cbf.util.xml.provider.FacetPortXML;

/**
 * @author Nebelritter
 *
 */
public class ControllerPortXMLItem extends AbstractControllerPortXMLFacet {

	/**
	 *
	 */
	public ControllerPortXMLItem() {
		super();
	}

	@Override
	protected void configureManagerXMLPortsForFacets(ManagerPortEntityFacetedXML manager) {
		PortFacetArmorXML portArmorXML = new PortFacetArmorXML();
		portArmorXML.setXmlPort(new FacetPortXML());
		manager.addPortFacet(portArmorXML);
		
		PortFacetContainerXML portContainerXML = new PortFacetContainerXML();
		portContainerXML.setXmlPort(new FacetPortXML());
		manager.addPortFacet(portContainerXML);

		PortFacetGarmentXML portGarmentXML = new PortFacetGarmentXML();
		portGarmentXML.setXmlPort(new FacetPortXML());
		manager.addPortFacet(portGarmentXML);

		PortFacetItemXML portItemXML = new PortFacetItemXML();
		portItemXML.setXmlPort(new FacetPortXML());
		manager.addPortFacet(portItemXML);

		PortFacetWeaponCCXML portWeaponCCXML = new PortFacetWeaponCCXML();
		portWeaponCCXML.setXmlPort(new FacetPortXML());
		manager.addPortFacet(portWeaponCCXML);
		
		PortFacetWeaponRangedXML portWeaponRangedXML = new PortFacetWeaponRangedXML();
		portWeaponRangedXML.setXmlPort(new FacetPortXML());
		manager.addPortFacet(portWeaponRangedXML);
	}

}
